package com.dog.basics.bean.dto.admin.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class GoodTypeAddDto {
    /**
     * 商品类型名称
     */
    @NotNull(message = "商品类型名称不能为空")
    @ApiModelProperty(value = "商品类型名称", dataType = "String", required = true)
    @Size(min = 1,max = 50,message = "格式不正确")
    private String name;
}
